package com.example.newsapp.model;

//userId区分浏览记录的用户
public class UserNewsItem extends NewsItem {
    private Integer userId;

    public UserNewsItem() {
        super();
    }

    public UserNewsItem(Integer id, String title, String time, String imageUrl, String author,Integer userId) {
        super(id, title, time, imageUrl,author);
        this.userId = userId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
